#ifndef _DATA_DBDATA_H_
#define _DATA_DBDATA_H_
#include "typedef.h"

void doConnect(char* str);
void doDisconnect(void);

uint32 get_table_relfilenode(char* relname);
uint32 get_table_pages(char* relname);
AttributeMap* get_table_attmap(char* rellname);
void lock_table(char* relname);
void truncate_table(char* relname);
void release_table(void);
void base_data_import(char *sql);
char* get_table_relpath(char* relname);
char* get_data_dir(void);
void exec_checkpoint(void);

void doPrepare(char *sql, int paranum, char* stmt_name);
void executePrepared(char* stmt_name, char** paramValues, int argnum);

#endif